package com.huaxin.hxmodulestatisticalanalysis.dto.response;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 三相温度数据传输对象，用于返回折线图所需的时间序列数据
 */
public class ThreePhaseTemperatureDTO {

    private LocalDateTime createdAt; // 时间点
    private BigDecimal tempA;        // A相温度 (℃)
    private BigDecimal tempB;        // B相温度 (℃)
    private BigDecimal tempC;        // C相温度 (℃)

    // 构造函数
    public ThreePhaseTemperatureDTO() {
    }

    public ThreePhaseTemperatureDTO(LocalDateTime createdAt, BigDecimal tempA, BigDecimal tempB, BigDecimal tempC) {
        this.createdAt = createdAt;
        this.tempA = tempA;
        this.tempB = tempB;
        this.tempC = tempC;
    }

    // Getters and Setters
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public BigDecimal getTempA() {
        return tempA;
    }

    public void setTempA(BigDecimal tempA) {
        this.tempA = tempA;
    }

    public BigDecimal getTempB() {
        return tempB;
    }

    public void setTempB(BigDecimal tempB) {
        this.tempB = tempB;
    }

    public BigDecimal getTempC() {
        return tempC;
    }

    public void setTempC(BigDecimal tempC) {
        this.tempC = tempC;
    }
}